import {Card, Row, Col, Typography} from "antd";
import Base from "@/pages/Province/SubjectDetail/components/Base";

// 图-培养过程
import Gmm02_1 from "./components/wx_components/Gmm02_1";
import Gmm02_2 from "./components/wx_components/Gmm02_2";
import Gmm02_3 from "./components/wx_components/Gmm02_3";
import Gmm02_4 from "./components/wx_components/Gmm02_4";
import Gmm02_5 from "./components/wx_components/Gmm02_5";
import Gmm02_6 from "./components/wx_components/Gmm02_6";
import Gmm02_7 from "./components/wx_components/Gmm02_7";
import Gmm02_8 from "./components/wx_components/Gmm02_8";
import {history} from "@@/core/history";
import {useEffect, useState} from "react";
import {Detail02Number} from "@/services/Province/Dashboard";

export default (props) => {

  const urlArr = history.location.pathname.split('/')
  const school = urlArr[urlArr.length - 1]
  const subject = urlArr[urlArr.length - 2]
  const schoolSubject = school + '-' + subject
  const [numbers, setnumbers] = useState([0, 0, 0])
  const [reload, setreload] = useState(false)
  useEffect(() => {
    Detail02Number({subject: schoolSubject}).then(res => {
      if (res.status === 0) {
        // setnumbers(res.data)
        setnumbers(res.data)
      }
    })
  }, [reload])

  return <Base props={props}>
    <Row gutter={[24, 24]}>
      <Col span={24}><Card title="教书育人">
        <Row>
          <Col>
            <Gmm02_7/>
          </Col>
        </Row>
        <Card title={"学科领域突出贡献毕业生"}>
          <p className="good-content-size">自2011年至今，在学科领域有突出贡献的毕业生人数：<Typography.Text strong>{numbers[1]}</Typography.Text>人</p>
        </Card>
      </Card></Col>
    </Row>
  </Base>
}
